package com.kob.backend.controller.user.account;

import com.kob.backend.pojo.User;
import com.kob.backend.service.user.account.InfoService;
import com.kob.backend.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 获取用户信息controller
 *
 * @Author: CZY
 * @date: 2024/9/1 22:21
 */
@RestController
public class InfoController {
    @Autowired
    private InfoService infoService;

//    @GetMapping("/user/account/info/")
//    public Map<String, String> getinfo() {
//        return infoService.getinfo();
//    }

    @GetMapping("/api/user/account/info/")
    public Result<User> getinfo2() {
        return infoService.getinfo();
    }
}
